/**
 *   类说明
 * 	@company         杭州黔灵科技有限公司  
 *   @creator             chenhe
 *   @create-time     2012-11-27   上午9:50:05   
 *   
 */
package com.zgcs.sequence.net.in;

public class StartGamePackage extends InPackage {

	int result;
	int roomID;
	int ownerID;
	String ownerName;
	String msg;

	public StartGamePackage(String result) {
		super(result);
	}

	/**
	 * 
	 */
	private static final long serialVersionUID = 1555113461085614951L;

	@Override
	public void parserSelf() {

		result = Integer.parseInt(resultSpl[2]);
		if (result == RESULT_SUCESS) {
			roomID = Integer.parseInt(resultSpl[3]);
			ownerID = Integer.parseInt(resultSpl[4]);
			ownerName = resultSpl[5];
			msg = resultSpl[6];

		}

	}

	public int getResult() {
		return result;
	}

	public void setResult(int result) {
		this.result = result;
	}

	public int getRoomID() {
		return roomID;
	}

	public void setRoomID(int roomID) {
		this.roomID = roomID;
	}

	public int getOwnerID() {
		return ownerID;
	}

	public void setOwnerID(int ownerID) {
		this.ownerID = ownerID;
	}

	public String getOwnerName() {
		return ownerName;
	}

	public void setOwnerName(String ownerName) {
		this.ownerName = ownerName;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

}
